package com.example.webapp.hibernate.forum;

import java.util.Calendar;
import java.util.HashSet;
import java.util.Set;

import com.example.webapp.hibernate.user.User;

public class ForumThread {
	private long threadId;
	private String title;
	private Calendar created;
	private Calendar updated;
	private User createdBy;

	private ForumCategory category;
	private Set<ForumPost> posts = new HashSet<ForumPost>();

	public long getThreadId() {
		return threadId;
	}

	public void setThreadId(long threadId) {
		this.threadId = threadId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Calendar getCreated() {
		return created;
	}

	public void setCreated(Calendar created) {
		this.created = created;
	}
	
	public Calendar getUpdated() {
		return updated;
	}
	
	public void setUpdated(Calendar updated) {
		this.updated = updated;
	}

	public User getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(User createdBy) {
		this.createdBy = createdBy;
	}

	public ForumCategory getCategory() {
		return category;
	}

	public void setCategory(ForumCategory category) {
		this.category = category;
	}

	public Set<ForumPost> getPosts() {
		return posts;
	}

	public void setPosts(Set<ForumPost> posts) {
		this.posts = posts;
	}

}
